feat(tools): added clerk tools and block#3032
Merged
waleedlatif1 merged 3 commits intostagingfrom Jan 28, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile OverviewGreptile SummaryThis PR adds comprehensive Clerk authentication integration to Sim, introducing 11 new tools and a unified block for managing users, organizations, and sessions. Changes
ArchitectureThe implementation follows established patterns in the codebase:
Issues Found
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Sim Workflow
participant Clerk Block
participant Tool Registry
participant Clerk API
User->>Sim Workflow: Configure Clerk Block
User->>Clerk Block: Select operation (e.g., "List Users")
User->>Clerk Block: Provide Secret Key
User->>Clerk Block: Set operation parameters
Sim Workflow->>Clerk Block: Execute block
Clerk Block->>Clerk Block: Map UI params to tool params
Clerk Block->>Tool Registry: Request tool (e.g., clerk_list_users)
Tool Registry-->>Clerk Block: Return tool config
Clerk Block->>Clerk API: HTTP Request with Authorization
Note over Clerk Block,Clerk API: GET/POST/PATCH/DELETE to<br/>api.clerk.com/v1/*
alt Success
Clerk API-->>Clerk Block: 200 OK + Response data
Clerk Block->>Clerk Block: Transform response
Clerk Block-->>Sim Workflow: Return formatted output
Sim Workflow-->>User: Display results
else Error
Clerk API-->>Clerk Block: 4xx/5xx + Error details
Clerk Block->>Clerk Block: Log error
Clerk Block-->>Sim Workflow: Throw error with message
Sim Workflow-->>User: Show error message
end
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type of Change
Testing
Tested manually
Checklist